package network;

public class Constants {
	
	//Packet constants
	/**
	 * The maximum length of the payload for a network packet in bytes
	 */
	public static final int MAX_PAYLOAD_LENGTH = 48;
	
	/**
	 * The length of the headers of a network package in bytes
	 */
	public static final int HEADER_LENGTH = 2;
	
	/**
	 * The total maximum length of a network package, that is including
	 * headers and payload
	 */
	public static final int MAX_PACKET_LENGTH = MAX_PAYLOAD_LENGTH + HEADER_LENGTH;
	
	
	//Adressing constants
	/**
	 * the bit length of a TPA-field
	 */
	public static final int TPA_LENGTH = 4;
	
	/**
	 * The maximum integer value of a TPA
	 */
	public static final int TPA_MAX = (int) (Math.pow(2, TPA_LENGTH) - 1);
	
	public static final int TUNNEL_PORT = 6464;
}
